package ym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import ym.pojo.Permission;

import java.util.List;

public interface PermissionService {
    void add(Permission permission);

    void update(Permission permission);

    void delete(Integer id);

    Permission findById(Integer id);

    List<Permission> findAll();

    Page<Permission> search(String search, int page, int size);
}
